


#ifndef _CSURFACE_H
#define _CSURFACE_H 1

#include <d3d9.h>
#include <d3dx9.h>

class CSurface
{
public:
	CSurface(LPDIRECT3DDEVICE9 dev);
	~CSurface();
	int Load(char *, D3DCOLOR);
	void SetDevice(LPDIRECT3DDEVICE9 dev) { device = dev; }
	LPDIRECT3DSURFACE9 GetSurface() { return surface; }

private:
	LPDIRECT3DSURFACE9 surface;
	LPDIRECT3DDEVICE9 device;
};


#endif
